package kr.hkit.powerjava.s;

class Date {
	int year;
	int month;
	int day;

	public void setYear(int year) {
		this.year = year;
	}

	public void setMonth(int month) {
		this.month = month;
	}

	public void setDay(int day) {
		this.day = day;
	}

	void print1() {
		System.out.println(year + "." + month + "." + day);
	}

	void print2() {
		String m = null;
		switch (month) {
			case 0:
				break;
			case 1:
				m = "Jan";
				break;
			case 2:
				m = "Feb";
				break;
			case 3:
				m = "Mar";
				break;
			case 4:
				m = "Apr";
				break;
			case 5:
				m = "May";
				break;
			case 6:
				m = "Jun";
				break;
			case 7:
				m = "Jul";
				break;
			case 8:
				m = "Aug";
				break;
			case 9:
				m = "Sep";
				break;
			case 10:
				m = "Oct";
				break;
			case 11:
				m = "Nov";
				break;
			case 12:
				m = "Dec";
				break;
		}

		System.out.println(m + "." + day + "." + year);
	}
}

public class DateTest {
	public static void main(String[] args) {

		Date d = new Date();

		d.setYear(1987);
		d.setMonth(5);
		d.setDay(9);
		d.print1();
		d.print2();

	}
}
